package sqs.model;

import java.util.Comparator;

/**
 *
 * @author Joko YU
 */
public class PageComparer implements Comparator<Page>{

    public int compare(Page o1, Page o2) {
        int v1 = o1.getStartingNo();
        int v2 = o2.getStartingNo();
        
        if(v1<v2)
            return -1;
        else if(v1>v2)
            return 1;
        else
            return 0;
    }
}
